function login(){
	var username = $("#username").val();
	var password = $("#password").val();
	if(Util.isEmpty(username) || Util.isEmpty(password)){
		alert("账号或者密码没有填写");
		return;
	}
	var param = {"username":username,"password":password};
	$.post(Util.getURL("login"),param,function(data,status){
		var errorCode = data.errorCode;
		if(errorCode == 0){
			window.location.href="page/home.html";
			sessionStorage.admin = data.admin;
			sessionStorage.sessionId = data.sessionId;
		}else if(errorCode == 1){
			alert("账号或密码为空");
		}else if(errorCode == 2){
			alert("账号或密码错误");
		}
	},"json");
	
}
